package ink.xiaobaibai.bo;

import ink.xiaobaibai.valited.DoubleSize;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @description: 范围查询参数
 * @author: 小白白
 * @create: 2021-05-22
 **/

@Data
public class RangeParams {

    @NotNull(message = "维度不可为空")
    @DoubleSize(min = 0, max = 90, message = "纬度错误")
    private Double lat;

    @NotNull(message = "经度度不可为空")
    @DoubleSize(min = 0, max = 180, message = "经度错误")
    private Double lng;

    @NotNull(message = "查询范围不可为空")
    @DoubleSize(min = 1, max = 30, message = "查询范围最大30KM")
    private Double distance;

}
